# Dockerfile for gxd-turbine
# 1、Build with:
# docker build -t gxd-turbine .
# 2、tag
# docker tag gxd-turbine 192.168.50.35:5000/gxd-turbine
# 3、push
# docker push  192.168.50.35:5000/gxd-turbine
# 4、Run with:
#docker run -p 2002:2002 -d -v /opt/spring-turbine/logs:/opt/spring-turbine/logs --net host  --name gxd-turbine 192.168.50.35:5000/gxd-turbine
FROM openjdk:8-jre-alpine
#MAINTAINER gongjing <jsjgongjing@sina.com>
#RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
#    && echo "Asia/Shanghai" > /etc/timezone && mkdir /app
#WORKDIR /app
#COPY gxd-turbine-0.0.1-SNAPSHOT.jar /app
#ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/app/gxd-turbine-0.0.1-SNAPSHOT.jar"]
#EXPOSE 2002

FROM openjdk:8-jre-alpine
MAINTAINER gongjing <jsjgongjing@sina.com>
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone && mkdir /app
WORKDIR /app
COPY gxd_turbine_1.0.0.jar /app
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/app/gxd_turbine_1.0.0.jar", "--spring.config.location=/app/application.yml"]
EXPOSE 2002